package com.xp.code.servicesImpl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xp.code.dao.IDeptInfoDao;
import com.xp.code.services.IDeptInfoService;
import com.xp.code.vo.DeptInfoVO;

/**
 * 
 * @author HAHA
 *
 */
@Service("deptInfoService")
@Transactional(rollbackFor=java.lang.Exception.class)
public class DeptInfoService implements IDeptInfoService {

	@Resource(name="deptInfoDao")
	private IDeptInfoDao deptInfoDao;
	
	public DeptInfoService() {
		
	}

	public IDeptInfoDao getDeptInfoDao() {
		return deptInfoDao;
	}

	public void setDeptInfoDao(IDeptInfoDao deptInfoDao) {
		this.deptInfoDao = deptInfoDao;
	}

	/* (non-Javadoc)
	 * @see com.xp.code.servicesImpl.IDeptInfoService#addDeptInfos(com.xp.code.vo.DeptInfoVO)
	 */
	public DeptInfoVO addDeptInfos(DeptInfoVO deptInfoVO)throws Exception{
		return deptInfoDao.addDeptInfos(deptInfoVO);
	}
}
